package entrevista;

import java.util.ArrayList;
import java.util.List;

public class Fbi {
	
	
	
	public void setNombre(Villano v) {
		v.setName("nico");
	}

	List<Organizacion> organizations = new ArrayList<Organizacion>();
	//list of trackedVillains whith more than 50 subordinates
	List<Node> trackedVillains = new ArrayList<Node>();
	
	//We check if we have to track the organization
	public boolean lookIfItIsMoreThanFifty(Villano v, Organizacion organization){
		
		int level = 0;
		Node villainNode = organization.lookForVillain(v, organization.getRoot(), level);
		
		int numSubor = 0;
		
		organization.getNumberOfSubordinate(villainNode, numSubor);
		
		if (numSubor > 49)
			return true;
		else
			return false;
		
	}
	
	public static void main(String[] args) {
		
		Fbi fbi = new Fbi();
		
		Villano v = new Villano();
		v.setName("marco");
		
		
		fbi.setNombre(v);
		
		System.out.println(v.getName());
		
		
		
		
		
		
			

	}

}
